Added option to fit only ee or mm (in beta)