Generate record fields needed only