Added table parsing function from socket stream