Added the logic for adding the arguments to the route