Add opts argument to routes