Changed the way in which geting the org_orient