The timeout is in seconds.

Resolves #1922.