Improved logging. Test of probalility on history collection