Removed debug print statements from working filtering functions