Add support for multiple parents.