Change loop read function