added support to delay between events