Added support for defining a record multiple times

This is for the .tgp file