Support timeout
Merge pull request #1 from semenyukdmitriy/master

Support timeout