See previous comment about avoiding the use of collect().