Made a start on the removePermission function