Added file output and menu.