Skeleton code for saving messages.