Iterate through lines to find interrupt