Added a merge record utility and basic cleanup.