Added support for setting HTTP timeouts.