Added: new implementation of client, does write stuff