Modify the parse output to generage a matrix