Added ability to insert dependent objects.