Finished the initial deploy function