Changed perm variables to chars