Made MIFilter into a class. It was a module.
Changes to scripts and tests as a result or converting MIFilter to a class from a module.