New update functions for avl trees.
New write_top plugin