Need to benchmark and debug boysfunction.