Client side stuff for chat.