Trimming irrelevant files