Returning booleans instead of integers