Remove print statements from stats generation functions.