Changed some of the initial code in perform_enforce() and reworked how to find when to schedule next.