Move record to struct