Change the timeouts from microseconds to seconds before using them as timeouts.