Added timeout.
Changed network requiring.