Set the delay to a variable