Added getter function for schedule