Added calculating difference