Made read/write from/to slices.