Added in LM and MC fitting to script