Added a virtual destructor.