Added randomTimeEvent frame functionality