A crack at implementing the Time loop logic