Hooks allow parameters and blocks to middlewares