Added mod filter and unit tests for it. (not integrated yet)