Easily create your own middleware layer.