Added ability to extract record