Changed log entropy calculation