Updating the on-run script