Added new fit program that fits two different mode