Updated with softmax.