added sleep to control the data pulling speed