Improved on walking parsing tree.