Changes to getElement.