Now returns a dict {objectname: objectid}