add timeout setting.

Add timeout setting with 10 secs by default.