Added initial interrupt logic.