Make sure getRecordFromData is publicly available