Update history to be dynamic