Reformatted serialReader for loop code.