Added support for multiple cards