Use digest instead of apply