Added the log loss function