Adds get_components_by_id function.