Added code to multiDevice