Max told me how to get set_perms() working