Adding new file for fitting fn