Changed min to max in the time_old-time(A) update, not using mod to update the ros