Setup the constructor and destructor.