Shit storm of if statements