Updated template. Function to be evaluated