Added the getObjectsData method.