Re-implement the constructor and destructor.