Extracting the server communcation to a super class.