Created seperate function to write processed files