Reduced the number of permissions required.