Switching on outlets

I don't think the overflow is a problem. He only looks at the value
if he is running it for 90 minutes, otherwise he doesn't care.

Unless he needs a count of switches, he might be better
using a bool value instead of an int, since it only needs two
states for buttonpushcounter.
It is silly to do modulo math when the state is either true of false.
Just my opinion.
Dwight