Added timeout option for fetch.