Move isr.c to main function