Refactored and moved network comm methods to a seperate class