Losing my head with some wild coding.