Updated the uploadNetwork function signature.