Path generation working