Added a bunch of testing code.
TODO: Fix issue with subsequent nested routes.