Improved definition of detLaplace.