Updated ActivateComponent to accept more parameters