Implemented advanced routing.