Move stuff from gace.HandleNetworking to a hook