Removed unused function in pie.