Working implementation

Debug strings are sent to the server one at a time.