Implement insertElem