Some more path following code.