Added evaluation of time difference