Client-server mode now works