Generating path