Double Log Density Function added