Creating emulator