Do more efficient check first.
Reformat permissions file.