Added _resolveElement method + doc.