Moved line
unwrap() correctly updates parent references
Added useful helper