Implemented basic routing system.