Add simple emulator for debug