Runnable example. Not finalized. Scheduling method added to scheduler.