Added a helper in the pie chart