Add entropy calculations.