-- << FUNCTIONS >>

function module:InsertStat(key, statName, value, specificData)
	if updating and not specificData then repeat wait(0.1) until not updating end
	key = tostring(key)
	if specificData then
		table.insert(specificData[statName], value)
		specificData.DataToUpdate = true
	else
		table.insert(main.sd[key][statName], value)
		main.sd[key].DataToUpdate = true
	end
end

function module:ChangeStat(key, statName, newValue)
	if updating then repeat wait(0.1) until not updating end
	main.sd[key][statName] = newValue
	main.sd[key].DataToUpdate = true
end


