Add history script