Added constructors and destructors.