Add duration to the output.