Added FilterM

Need to add unit tests