update so that off-shift portion is also outputted in multiple runs. Also bug in ShiftScheduler fixed