How to add delay before executing onDeadtrigger??