Implement saveRecord