Modify to use the scheduler.lua module suplied with libSPRITE-0.5