*** Using unfoldrN, contextFilter function runs 2 times faster ***