Replacement for the current routing algorithm.