Added logging of digest.