Added currentItemIsLastInSchedule().