Updated autocomplete example
Make loop argument optional
Removed debug print