Host switcher

Depends on #1413.