Make timeout configurable