Add command history support.