auto increment loop not working

This line:

pumpClock = pumpClock++;

is undefined. If you want to increment pumpClock, all you need is:

pumpClock++;

or

++pumpClock;

Either one is functionally identical to:

pumpClock = pumpClock + 1;

Regards,
Ray L.