Stop making objects after 10 objects