Path generator modified