First part of deploymentscript