+1, integrate these timeouts into an object would be more clear.