Implemented timeout and retry.
0.6.2