Imrovement to cleanData.