Routing

Implements #8.