Add function to table.