Refactoring the filter function
Piping the output to /dev/null to prevent to much information
fixes #4