Added a basic routing system, and PDO extraction.