Add a support to specify the timeout and number of tries when downloading a rilitem