This is being repeated from _GetCompletions. Put it in a function and then reuse it in both.