Avoid global variable
Fix tracing
Raise error on invalid opcode
Include host on error message