local count = 0
local function counter()
	count = count + 1
	return count
end

-------DEVICE ID-------
devices = {}
-- moved forward for correct initialization of another devices
devices["ELEC_INTERFACE"]			= counter()
devices["FUELSYS_INTERFACE"]		= counter()
devices["ENGINE_INTERFACE"]			= counter()
devices["HYDRO_SYS_INTERFACE"]		= counter()
devices["EJECT_SYS_INTERFACE"]		= counter()
devices["WEAP_SYS"]					= counter()
devices["I9K113"]					= counter()
devices["DISS_15"]					= counter()
devices["ASO_2V"]					= counter()
devices["AUTOPILOT"]				= counter()
devices["CPT_MECH"]					= counter()
devices["RADAR_ALTIMETER"]			= counter()
devices["FIRE_EXTING_INTERFACE"]	= counter()
devices["MISC_SYSTEMS_INTERFACE"]	= counter()
devices["EXT_LIGHTS_SYSTEM"]		= counter()
devices["ASP_17V"]					= counter()
devices["PKV"]						= counter()
devices["UKT_2"]					= counter()
devices["SPUU_52"]					= counter()
devices["SOUND_SYSTEM"] 			= counter()
devices["KNEEBOARD"] 				= counter()
devices["HEAD_WRAPPER"]				= counter()
devices["INT_LIGHTS_SYSTEM"]		= counter()
devices["MGV1SU"]					= counter()
devices["MGV1SU_1"]					= counter()
devices["MGV1SU_2"]					= counter()
devices["GREBEN"]					= counter()
devices["ID6"] 						= counter()
devices["ECS_INTERFACE"]			= counter()
devices["HELPER_AI"]				= counter()
devices["OXYGEN_INTERFACE"]			= counter()
devices["PKP72M_P"]					= counter()
devices["PKP72M_O"]					= counter()
devices["PKP72M_INTERFACE"]			= counter()
devices["CLOCK_P"]					= counter()
devices["CLOCK_O"]					= counter()
devices["FM_PROXY"]					= counter()
devices["IAS_P"]					= counter()
devices["IAS_O"]					= counter()
devices["VARIOMETER"]				= counter()
devices["BAROALT_P"]				= counter()
devices["BAROALT_O"]				= counter()
devices["RMI2_P"]					= counter()
devices["RMI2_O"]					= counter()
devices["MAP_DISPLAY"]				= counter()
devices["ARC_15"]					= counter()
devices["ARC_15_PANEL_P"]			= counter()
devices["ARC_15_PANEL_O"]			= counter()
devices["R_863"]					= counter()
devices["JADRO_1I"]					= counter()
devices["EUCALYPT_M24"]				= counter()
devices["R_852"]					= counter()
devices["G_Meter"]					= counter()
devices["ARC_U2"] 		            = counter()	
devices["SPU_8"] 		            = counter()	
devices["RS_Proxy"] 		        = counter()	
devices["IFF"]						= counter()
devices["Recorder_MC61"]			= counter()
devices["VMS"]						= counter()
devices["ANTI_ICE_INTERFACE"]		= counter()
devices["EXT_CARGO_EQUIPMENT"]		= counter()
devices["SARPP12I1"]				= counter() 
devices["SIGHT_DOORS"]				= counter() 
devices["SIGNAL_FLARES"]			= counter()
devices["MACROS"]          			= counter()
devices["STANDBY_COMPASS"]			= counter()
devices["SPO_10"] 					= counter()
devices["KM_2"] 					= counter()
devices["NVG"] 						= counter()
devices["TIMER"] 					= counter()
devices["EXTERNAL_CARGO_SPEECH"]	= counter()
devices["CREW_INDICATOR"]			= counter()
devices["R60_INTERFACE"]			= counter()

-- Start VAG
devices["Smoke"]					= counter()		
-- End VAG