Xrf fit

And looking at how this is used below, this should be integers, not floats.