Added cancelRoute function