Provide way to detect expired messages

Fixes #7