* Adds middleware layer.
* Upgrades configuration.