Adding a script to retrieve data