Rename variable stage to phase.