Add q_history to Dof class.