Trimming necessary files