Simplified the simple chat example.