read_each method added and read method depending on it.