Add a mode selector.