Better active route logic.