Adding Fuctions ForEachDevice