Add forEach method.