Add and remove devices