Allow performing query with no timeout.

Fixes #33.