Adding last writing to index