added minimum delay setting between script runs