Bug fixes, added NM filter (looking only for those at variance with the reference.