Deduplication is optional
Added a dependency.
Added a middleware explicitly