Jethro, that code returns incorrect common channels if $0 > 1. those 'tokenize loops' are only suitable if you know the value of $0 in advance.