First version. Slow for long lists and tau>2.