Improve permissions system.