Record start and end positions of nodes.
Add error reporting.