Added some mor efunctions to perms.ijs