Script for updating