Modifying underlining structure from vector to map for chunks. NOT WORKING YET.