Added timeout option.