Refactored deployment.