Adjust sync timeout dynamically.
Merge pull request #108 from EasonLiao/dynamic_timeout

Dynamically change the timeout for synchronizing process