Added a boolean return value to all the functions