Make timeout configurable.