Basic routing and cleanup