Changed some context_emulator stuff