Will now loop over list of files