We have limited the quantity of Stock pieces to 1 million per row. We did this because it is enough for the 99.99% of cases that the program is intended to handle. Also, larger quantities can lead to the crash of the application which is a 32 bit application and cannot access more than 2GB of RAM.