Added chat support. Removed redundancies. Another blind commit.