Added in a while loop
Deleted while loop in auto