General path generation working