Added region tracking and storing