Add profile loaded check to FlatFile