Added chart generation.