Started likelihood profiling function