Finishes layout and routes.