Reworked scheduleCompleteRun().