OpenElementStack tested. Refactorings.