Fixed several bugs.
Blank messages will now be omitted.