Duration as a parameter