Get rid of surplus argument in menu function