Added ability to add object without having an id