Schedule Generator Inner Loop