Added 'permissions' argument.