Getting deploy and undeploy tasks to work properly again.