Add support for generating Record instances.