Added simple diff funtion