Allow the duration to be overridden.