Made MAX_ACTIVE_DATA_EXTENTS be set to 1, and removed, but awkwardly so (with many 1-pass for loops).