Removed deprecation on addComponent.