Add a class to store messages.
Update onResume().