Prevent digest() from being called inside digest()
Updated apply()