How to use an emulator