Added result difference calculation