Rewrote chat parsing