Added history search and better completion settings