Cleaned-up some object instantiation, added syncing when there's a create or delete.