Implemented capturing groups for routing.