Added methods to the router class