Update history script