Moved some semi-hardcoded stuff to configurable things on top of router.py.