Changed "managed write" from IndexedMap to a basic Map impl, which is simpler