Added more question, refactored code. Enabled sending messages to server