Add doc on how to use custom completion function.