Removed unnecessary or in scheduling loop.