First version of time trigger