Delete models and use buffer for reading from files