Added in Arron's modified code for parse_operand