Removed more debugging; also unecessary $oid reference