Added setf for permissions
Added PERM helper