Adding filter to monitor only files with specified endings