Added DMI's filematch code (just for inspection)