Work on splitting off phase-specific events and functions to new scripts.