Tweaked loop for Binary Test Output