Handling added, changed, deleted, undeleted using the buffer class now.

Note: is not yet accounting for sequences.