You have different emuns like I said. The one outside the while loop has values of First Step, Second Step, Third Step, Fourth Step, andd Stop 1. The ones inside the case statements have First Step, Second Step, Third Step, Fourth Step, and Wait. The enums all have to be identical.