Added "duration" optional param to the root object