Update Script History Functionality