Using update() data instead of root. Removed ROOT dependency.