Let the timeout be configurable with a default value of 300s.