Added logging in main for phases.