Added saving of ground truth.