Proper utility functions for server communication.