Use a registerElement method