Updated deployment code