Allow length to be overridden.