Schedule function updates

I will change this to be comparisons; however, it is inclusive on 0 and exclusive on 26, not the other way around.