Added entropy estimation.