Added typehint for the element argument