Should do these operation in destructor.