This element appending should be refactored into the base class as well.