Get some error log to test on
Add tree insertion function