Actually add the function to the list.