Add routing logic