A->B communication now works!
Quit thread gracefully.
Added gain control.