Make more memory efficient by adding time-of-day to looping.