Fixed example to use default device.