Altered framework to pass record at a time