Add lastPhase and firstPhase