Added basic client-server protocol