Working version of the autodeployer