Batch message support. Fixes #2.