Modify to process multiple cards