Tweak to deploy routine