Update middleware spec