Added intermediate digest support.