Use each instead of collect.