Added support for handling multiple routes