Better Gui, file processing functions