Initial recovery middleware