Fixed Scheduler changed indexes from UInt to Int and added Step -1 to For loops