The start of actually trimming/saving files