First working version for multiple devices