Added support for dynamic object creation