Allow setting timeout to zero. Closes #117