Adapted network to new EventSystem.