Playing around with tree optimizer ideas..