Finally figured out how to update the execution session after modifying a syntax tree.