Fixed bad deserialization, better handling for schedules.
Added missing case _ =>.