Chat functions fixed.