Switching to given structure array to handle the different opcodes