Fixed message sending. Implemented chat.