Script updates correctly