Worked on multi gaussian fitting