Refactored passing incident data and separated formatting table.