Implemented support for booleans in all relevant functions