Changed delay to duration