Improve chat controller.