Adds boolean handling.