Script to fetch the data