Externalize delay value

Use a variable for the expected delay (and set the default to 6
seconds).