Actually implement region retrieval and indexing correctly