Added the boolean function