Better support for foreach