Write messages in one statement. [Fix #3]