Timeout calculation corrected.