Added support for creating an object with components.