Make socket variable private and separate system and user messages