Reinstate middleware