Moved the timeout to the actual promise.