Updated transfer script and build script