Added boolean function.