Added simple device emulator.