Renamed UpdateFlags to StateFlags.