Yes it should have been set of stages, but it is not a redundant variable because waiting is cleared every 50 milliseconds.