Add listening code.

Porting in progress to ssu.