Add configurable timeout.