Added btree functions.