Added case for multiply when no vars are in common