Use more widely supported forEach style