WIP Introduced constuct function. Change collapseparent to updateparent everywhere.