Finished refactoring BendingSchedule. Debugging.