Debugging for router.py