Receive data function from listners. Enable with -receive option
Various clean-up.