Handle multiline messages

Addresses #30