Added FLAGS & OPCODES; abstracted set fncts