Add context to _processElems method