Using the messages framework