Register the functions