Added loop for all files