Fleshed out PathController.