Modified _route function to accept extras

Modified _route function to accept extras