SCHEDULER: Also change loops to for-each here.