Starting new code section for matching each MF with MFs in other datasets.
Merged version from Lab PC with local version.