Fixed a docstring
Cleaned up the filtering