Added ability to print AST.