Got rid of getOperands in most of the code. WIP.
Rewrote getInternalRepresentation method.