Add interrupt handler and setup_card function