Do not write to file if last selection data is the same