Added an option to generate the leftover