Formatted the interrupt code better