Added get-completions method that puts prioritizes functions if completion is in application position.