Refactor network-needed function starts with fetch