Move the timeout to the global scope