Replaced BOOL typedef with primitive bool type