Add a method with duration parameter