Adds permissions management.