Add read_data input and related function.