Started the process of making the flow into a list of middlewares