Added a loop that checks that gallons are't zero