Pattern traversal works.
TODO: LOTS OF REFACTORING AROUND OLD CODE IN main.js.