Add reversionmiddleware