Deployscript and adjustments to run on server