Scheduling system I wrote in 2010