Add opcodes for threads