Refactored for presentability of XML and added the ability to run the job more than once without redeploying