I need to go read up on piItem_flags; I can't imagine that they're totally unused and can be overwritten like this.