Using environment variables for timeouts where possible.

Using environment variables for timeouts where possible.

If no value is found in the environment, they will be defaulted.