Script to grab the data regularly