Added pie chart functionality.