Insert the mode selection at the beginning.