Filter now works, still need to check its performance. Memory leak has been addressed
Attempting to fix unmgered paths, and completing merge