Removing unnecessary permissions