Added code for storing a copy of the deployment plan