Add custom middleware. Will need to be styled later