Support setting timeouts
Merge pull request #20 from abotalov/timeouts

Support setting timeouts