Added handling for deleted objects, ability to create new objects.