Assign the right thing to 'delay', and use it consistently