Create HistoryManager.
Optimized ime layout.
Debug.