Add scalar and vectory history