Add function to profile the likelihood