Changed the return value to true and false instead of an int.