changed delay interval to duration for clarity.