iWantRawFile and GenerateRows functions