Filtering files and getting data right