Implemented assignment operator.