Can now receive messages from STDIN.

Fixes #3.