Implemented basic routing.