Added some new features (history/undo, search).