Added constructor with route-extraction