Only save when there are changes