Refactoring SimpleScheduler into its own class file.