Added ability to configure permissions