Added support of addObjects with objectIDs