Generalize record creation
Merge pull request #16 from gzm0/generalize

Generalize record creation