Upgrade of middleman