Increment the DataSetsWritten counter before freeing the RRD values. --kevin