Add get_messages() for retrieving messages only