Added region flags system