Added ability to add an array of objects.