Refactored submission id download iterations into one single function.
Added timeout