Before refactoring schedular