This should actually work; build the group list BEFORE we build the hash