Read function instead of data buffer.

Signed-off-by: mk124 <mk124a@gmail.com>