Use a menu function in the same way as compute_function.