Added copy constructor and assignment operator to avoid the defaults.