Refactor starting networking