Add option beginningOfElemOnly