Improved diff to be more acurate