Made Box.setParent more flexible.