Finalize record