Adding lentati style noise estimation code in testing directory