Add helper method for easy logging.
Rework autocomplete to SelectionItem objects, for better extensibility.