Mistakenly declared a bool as int. Fixed it.