Changed BOOLEAN to bool