Added Undo Tree mode.