Added fitting routines