Implemented module scheduler.