Update script to work