Assignation recognizes childs type.
Minor changes.