Added timedEvents functionality