Initial network collection code