ADded time trigger functionality