Changed the flats gui and removed blocking file io