Saving device id