Added diff equatations calculations