A very simple task scheduler.