Moved setPhase() to base Generator class.