Basic framework for routing and models