Refactoring permission changes.
Refactoring the right changes.