Moves UI calls in EDT.
Optimizes access to history service from recent messages.