Complete the functions.