Added function, oid_ent_to_oid, to replace the function