Improved the controller permissions system