Fixed and tested sending receiving for the simple case.