Changed bool type to int.