Simplify routing script