Replaced deprecated bool keyword with boolean