Added device code