Support for foreach loop