- Added the possibility to add middleware