Added loop reading to read_j