added delayed processing of pie chart. buggy..