Added output to file and fixed the 0s bug. Somehow the parent is sorting numbers past where the child was and the child then overwrote the sorted number. Offset by 10 from where the child was last at.