Only display latest message when necessary

Fixes #260