Progress on loss functions.