Generating path stream. Cleaned up debugging output.