Bad multiple pie generation code implemented. Unclear if I really have time to redo it right now.