Logic to router