Write function to do batch processing with funkyDoCalc