Implementation for server-client communication