deadline is now time.Time.  Fixed timeout bug wrt seconds vs 1000*seconds.