Initial code for auto complete functionality.