Initial routing and controller code.