Added resetElements()