Add defaults for timeout and rate when set to zero

Closes #7.