Start on writing perm file