Added needed serializing stuff to Operation.