Add function to update the deployment.