Add undohist & uniquify