Implemented the root filter, fixed known crash.