Implemented path-based routing.