Changed for loop to start at the bottom of files