Implement routing.