Changed the bool function to return variants of type bool, rather than type int.