Replaces the current structure with the preferred one