Make read response as a function