Added sending messages back to client (not tested)