Add new function used by other deploy_* function