Complete the selected function.