Clears more thoroughly.
Adds local history feature.