Updating some syntax and improving on deletePermission() function