Add timeout and retry to wget