I think you mean "set of stages", though this is a bit redundant since that is the exact type of the variable. Also, it's not 100% clear what the difference between "waiting" (a set of stages) and "waitingStages" (a different set of stages) is.