Prevent generate_charts() from running automatically if module is imported.