Removed references to SubObjectCodeGlobal because I do not think we actually need to modify that class. Getting a null pointer exception, so maybe I am wrong...