working on scheduler.
Cleanup whitespace.
Rework using a class for scheduled action closure.