Adding logic for booleans