`fitstart` and `fitend` should be local vars. Create a new data struct?
fitstartandfitendshould be local vars. Create a new data struct?