Added chart functionality