Fixed routing algorithm and visualization improvement