Add function and completion.