Output the final record