Added code for 'beq' and 'bne'