Simplified versions of server and client working