Adding early version of chart generation. You should not go this way.