Added logging for scheduler.