Refactored actual socket message functionality. Now this work like it should.