Added Scheduling
fixed casting
fixed casting