Added recursive download functionality for failed downloads