Added ability to add permissions