Modified Router (run without terminal).