Refactorized the code, the card and the device are now separated. You can have multiple cards on one device too.