Added EmergencyState enum and expanded parsing.