-Now catching exception if provided schedules are null
-Added some Unit tests