Change menu_iterate return value to int