Added note pruning