Fixed bad deserialization, better handling for schedules.