Added a fit parameter to fermi function to deal with baseline