v2.7- Added ability to set a range for delay