Change outgoing/download to use setTimeout instead of sleep (sleep causes problems with Firefox and safari)