added a random dwell timer