Call constructors and destructors properly.