Added an 'each' method.