Added code to emmit code from AST