Changed check for with-route argument

Changed check for with-route argument