Added symmetrization to fitting function.