Moved the new schedule object to a global variable