The upload command needs to be replaced by the commented one whenever this is put into Rollbase, also the detach and attach methods need to be tested.