Add history. Not work well yet