Set up frontend to distinguish messages.