Added parent element management.