Automatic exchange of components