Moving order back to before, adding a stat to check if file exists