Changed data_read from int to size_t