Update middleware reference.