Add metadata account object and logic to add it to record.