Adding a constructor to the scheduler