Reworking getElement.