Added support of levels for traversing object tree.