Updated message class to use private pointer data under the hood.