List the relevant API functions used in the above code.