Improved 'require' calls, added pie chart.