Middleware setup

Middleware ready to be used