Simplified routing code