Add checking to see if values are the same before flagging as dirty