Added code to choose different route distances