Prepare a record