Modified init, swapped globalNetwork with networkModel.