Added factory method for Schedule.