Update script for changes in to API response