Removed unneeded perm code