Ok. Seems to work now. How to make it update the data instead of downloading the entire history everytime?