Added the function to be called when computing tables.