Added undeploy function