Wrote more of the logic for drawing from the built tree.