Add selection code to menu.c.