Added destructor within class.