Made the route configurable and passed tests