Added support for multiple parents