Added a getNameElement method.