Update script when package loading.