Added a way to detect deleted items and a few small things for syncing.