Rename doFunction() in BFI to calculate() and change its parameters from pointers...