Add history.
Add tests for stack.